package com.kobeliu.exceptions;

import com.kobeliu.result.ResponseStatusEnum;

public class MyCustomException extends RuntimeException{

    private ResponseStatusEnum statusEnum;

    public MyCustomException(ResponseStatusEnum statusEnum) {
        super("异常状态码为："+statusEnum.status()+"异常信息为："+statusEnum.msg());
        this.statusEnum = statusEnum;
    }

    public ResponseStatusEnum getStatusEnum() {
        return statusEnum;
    }

    public void setStatusEnum(ResponseStatusEnum statusEnum) {
        this.statusEnum = statusEnum;
    }
}
